lcWndSetExtents Home

Sets extents rectangle. The extents are used to define viewed area in the command "Zoom Extents".
This function must be used if you implement all graphics via LC_EVENT_PAINT event, with empty drawing's database. If the drawing's database has entities, then the extents are set automatically, and you don't need to use this function.

 BOOL lcWndSetExtents (
   HANDLE hLcWnd,
   double Xmin,
   double Ymin,
   double Xmax,
   double Ymax
 );

Parameters
hLcWnd
  Handle to LiteCAD graphics window.
Xmin, Ymin, Xmax, Ymax
  Coordinates of extents rectangle.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).